﻿<%@ Page Language="C#" MasterPageFile="~/master/MasterPage.master"  AutoEventWireup="true" CodeFile="PesquisaGlossarioChaveDescricao.aspx.cs" Inherits="page_PesquisaGlossarioChaveDescricao" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<fieldset style="width:585px;">
    <legend>Filtro</legend>      
    <table>
    <tr>
     <td>
     <asp:Label ID="LlbPalavraChave" runat="server" Text="Digite a Palavra-Chave:"></asp:Label>
     </td>
     <td align=right>
     <asp:TextBox ID="TxtPalavraChave" runat="server" ToolTip="Digite o * como caractér coringa. Exemplo *Cliente* " Width="400px" ></asp:TextBox>
     </td>
    </tr>
    <tr>
    <td colspan="2" style="text-align:right">
    <input type="button" id="BtnVoltar" value="Voltar" onclick="javascript:history.back();" />
    <asp:Button ID="BtnPesquisar" runat="server" Text="Pesquisar" onclick="BtnPesquisar_Click" />
    </td>
    </tr>
    </table>
</fieldset>
<br />
<asp:GridView ID="GrdGlossario" runat="server" AutoGenerateColumns="False" 
        AllowPaging="True" onpageindexchanging="GrdGlossario_PageIndexChanging" onrowdatabound="GrdGlossario_RowDataBound"
        CellPadding="4" ForeColor="#333333" GridLines="None" Width="800px">
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Font-Size="10pt" Height="2px" />
        <RowStyle BackColor="White" />
    <Columns>
        <asp:BoundField DataField="NomeTermo" HeaderText="Termo do Glossário" />
        <asp:BoundField DataField="Descricao" HeaderText="Descrição" >
            <ItemStyle Width="200px" />
        </asp:BoundField>
        <asp:BoundField DataField="Abreviatura1" HeaderText="Abreviatura " />
        <asp:BoundField DataField="Abreviatura2" HeaderText="Abreviatura2" />       
        <asp:BoundField DataField="TermoEhRecomendado" HeaderText="Recom." 
            SortExpression="TermoEhRecomendado" />
        
              <asp:HyperLinkField DataNavigateUrlFields="Id" 
                 DataNavigateUrlFormatString="GlossarioDetalhe.aspx?Id={0}" 
                 HeaderImageUrl="~/images/search.gif" HeaderText="Detalhes" Text="Detalhes" />

    </Columns>
        <PagerStyle BackColor="#333399" ForeColor="White" HorizontalAlign="Center" />
         <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
         <HeaderStyle BackColor="#333399" Font-Bold="True" ForeColor="White" 
              HorizontalAlign="Center" Font-Size="10pt" />
         <EditRowStyle BackColor="#2461BF" />
</asp:GridView>
</asp:Content>

